﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class NewClient : System.Web.UI.Page
{
    Connectdbnour con = new Connectdbnour();
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        try
        {
            Label1.Text = con.newclient(TextBox1.Text, TextBox2.Text, TextBox3.Text, DropDownList2.SelectedItem.ToString() + "-" + DropDownList1.SelectedItem.ToString() + "-" + DropDownList3.SelectedItem.ToString(), TextBox4.Text, TextBox5.Text, Convert.ToInt32(TextBox6.Text), Convert.ToInt32(TextBox7.Text), DropDownList4.SelectedItem.ToString(), DropDownList5.SelectedItem.ToString(), DropDownList6.SelectedItem.ToString()).ToString();
            GlobalClass.Client = Label1.Text;
            Response.Redirect("Reception.aspx");
        }
        catch (Exception ex)
        {
            Label2.Text = ex.Message;
        }
    }
}